import request from '@/utils/request'

export default {
  //添加章节
  addVideo(video){
    return request({
      url: `/eduservice/video/addVideo`,
      method: 'post',
      data: video
    })
  },
  //删除章节
  deleteVideo(id){
    return request({
      url: `/eduservice/video/${id}`,
      method: 'delete',
    })
  },
  //根据ID查询
  getVideoInfoById(videoId){
    return request({
      url: `/eduservice/video/getVideoInfoById/${videoId}`,
      method: 'get',
    })
  },
  //修改章节
  updateVideo(video){
    return request({
      url: `/eduservice/video/updateVideo`,
      method: 'post',
      data: video
    })
  },
  //删除阿里云视频
  deleteAlyVideo(id){
    return request({
      url: `/eduvideo/video/removeAlyVideo/${id}`,
      method: 'delete',
    })
  },
}
